package edu.sctu.zcy.month201505.day20150504.polymorphic;

/**
 * Created by user24 on 2015/5/4.
 */
public class Employee {

    String name;
    String sex;
    int age;
    double wage;
    double bonus;

    Employee(String name, String sex) {
        this.name = name;
        this.sex = sex;
    }

    String getSex() {
        return sex;
    }

    void setName(String name) {
        this.name = name;
    }

    String getName() {
        return name;
    }

    void setWage(double wage) {
        this.wage = wage;
    }

    double getWage() {
        return wage;
    }

    void setBonus(double bonus) {
        this.bonus = bonus;
    }

    double getBonus() {
        return bonus;
    }

    void setAge(int age) {
        this.age = age;
    }

    int getAge() {
        return age;
    }

    double getInCome() {
        return wage + bonus;
    }
}
